<layout name='layout' />

<div class="admin-main">
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>上传设置</legend>
	</fieldset>

	<form id="ajaxForm" class="layui-form" method="post" action="<{:U('Setting/insert')}>">
		
		<div class="layui-form-item">
			<label class="layui-form-label">图片类型</label>
			<div class="layui-input-block">
				<input type="text" name="image_exts" value="<{:C('image_exts')}>" lay-verify="required" class="layui-input">
				<p class="place">多类型用,隔开</p>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">图片大小</label>
			<div class="layui-input-block">
				<input type="text" name="image_size" value="<{:C('image_size')}>" lay-verify="number" placeholder="单位KB" class="layui-input">
				<p class="place">单位KB</p>
			</div>
		</div>	

		<div class="layui-form-item">
			<label class="layui-form-label">附件类型</label>
			<div class="layui-input-block">
				<input type="text" name="file_exts" value="<{:C('file_exts')}>" lay-verify="required" placeholder="多类型用,隔开" class="layui-input">
				<p class="place">多类型用,隔开</p>
			</div>
		</div>	

		<div class="layui-form-item">
			<label class="layui-form-label">附件大小</label>
			<div class="layui-input-block">
				<input type="text" name="file_size" value="<{:C('file_size')}>" lay-verify="number" placeholder="单位KB" class="layui-input">
				<p class="place">单位KB</p>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
			</div>
		</div>
		<input type="hidden" name="files" value="upfile.php" />
	</form>
</div>
<script>
$("#tempBtn").click(function(){
	$("#status").val("0");
	$("#ajaxForm").submit();
});
</script>